//
//  TermsViewController.m
//  insyte
//
//  Created by Dell on 6/21/15.
//  Copyright (c) 2015 Robert. All rights reserved.
//

#import "TermsViewController.h"
#import "Helpers.h"
#import "UIColor+InsyteColors.h"
#import "Constants.h"

@interface TermsViewController ()

@end

@implementation TermsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpNavigationBar];
    if (self.navigationItem != nil) {
        UIImage* logoImage = [UIImage imageNamed:NavigationBarLogo];
        self.navigationItem.titleView = [[UIImageView alloc] initWithImage:logoImage];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setUpNavigationBar{
    UIBarButtonItem *btnDone = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStylePlain target:self action:@selector(OnBackClicked)];
    self.navigationItem.rightBarButtonItem = btnDone;
    self.navigationItem.titleView = nil;
}

- (void) OnBackClicked{
    [self.navigationController popViewControllerAnimated:YES];
}
@end
